<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app"></div>
    <script src="./vue.js"></script>
    <script>
      const vm = new Vue({
        el: "#app",
        template: `
        <div>
          <!--textContent-->
          {{username}}
          <hr>
          <!--
            innerHTML
            v-html="username" 等同 {{username}}
          -->
          <span v-html="username"></span>
          <hr>
          <input v-bind:type="t">
        </div>
        `,
        data: {
          username: "<b>jack</b>",
          t: "checkbox",
        },
      });

      vm.age = 20;
    </script>
  </body>
</html>
